<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<jsp:include page="../common/IncludeTop.jsp"></jsp:include>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>My JSP 'RegisterAndLogin.jsp' starting page</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
    <script>
      function btn1(){
       document.getElementById("fm").action="register";
       document.getElementById("fm").submit();
       }
      function btn2(){ 
       document.getElementById("fm").action="../catalog/login"; 
       document.getElementById("fm").submit();
      }
    </script>
  </head>
  
  <body>
  <center>
    <form action="" method="post" id="fm">
      用户名:<input type="text" name="userName"> <br>
      密码:<input type="password" name="password"><br>
      <input type="button" value="注册" onclick="btn1()">
      <input type="button" value="登录" onclick="btn2()">
    </form>
    </center>
  </body>
</html>
<jsp:include page="../common/IncludeBottom.jsp"></jsp:include>
